{extend name="index/base" /}
{block name="main"}
<div class="container">

    <table class="table table-bordered">
        <caption>百度搜索结果</caption>
        <thead>
        <tr>
            <th>书名</th>
            <th>链接</th>
        </tr>
        </thead>
        <tbody>
            {foreach $data as $value}
            <tr>
                <td><a href="{$value.link}" target="_blank">{$value.name}</a></td>
                <td><a href="{$value.link}" target="_blank">{$value.link}</a></td>
            </tr>
            {/foreach}
        </tbody>
    </table>

</div>
{/block}